/**
 * 
 */
package com.peter.store.idea;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.peter.data.entity.Idea;

/**
 * A repository to manage {@link Idea} instances.
 * @author peter
 *
 */
@RepositoryRestResource(collectionResourceRel = "idea", path = "idea")
public interface IdeaRepository extends PagingAndSortingRepository<Idea, Long> {
    List<Idea> findByContent(@Param("content") String content);
}
